SUBDIRS = build src docs

ASSEMBLY_WRAPPER = galaxium
ASSEMBLY_WRAPPER_IN = galaxium.in

PC_FILES =
PC_FILES_IN =

bin_SCRIPTS = $(ASSEMBLY_WRAPPER)

all:

desktopdir = $(datadir)/applications
desktop_DATA = galaxium.desktop

pixmapdir = $(datadir)/pixmaps
pixmap_DATA = galaxium.png

GALAXIUM_LAUNCH_SETUP= \
	cd build && \
	MOZILLA_FIVE_HOME=$(MOZILLA_HOME) \
	LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` \
	PKG_CONFIG_PATH=`echo "$(PKG_CONFIG_PATH):$(MD_PKG_CONFIG_PATH)" | sed 's/^://g'`

GALAXIUM_LAUNCH=$(GALAXIUM_LAUNCH_SETUP) exec -a "galaxium" mono

run: rungalaxium

rungalaxium: $(PROGRAM)
	$(GALAXIUM_LAUNCH) --debug Galaxium.Startup.exe

EXTRA_DIST = $(bin_SCRIPTS) $(desktop_DATA) $(pixmap_DATA)

DISTCLEANFILES = $(bin_SCRIPTS)
